package controller

import (
	"gadmin/service"
	"github.com/gin-gonic/gin"
	"net/http"
)

func GetMenu(c *gin.Context) {
	menus, err := service.GetMenus()
	if err != nil {
		SendError(c, err)
		return
	}
	c.JSON(http.StatusOK, menus)
}
